﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;

namespace PrivateTracker.Service.Core;
/// <summary>
/// 租户种子数据
/// </summary>
public class SysTenantSeedData : IEntitySeedData<SysTenant, MultiTenantDbContextLocator>
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="dbContext"></param>
    /// <param name="dbContextLocator"></param>
    /// <returns></returns>
    public IEnumerable<SysTenant> HasData(DbContext dbContext, Type dbContextLocator)
    {
        return new List<SysTenant>
            {
                new SysTenant
                {
                    Id = 142307070918780,
                    Name = "某某PT站",
                    Email = "51XXX6995@163.com",
                    AdminName = "admin",
                    Phone = "18758003022",
                    Host = "localhost:44347",
                    Connection = "",
                    CreatedTime = DateTimeOffset.Now,
                },
               new SysTenant
                {
                    Id = 142307070918781,
                    Name = "XX PT站",
                    Email = "XXXXXXXX@163.com",
                    AdminName = "admin",
                    Phone = "13152456141",
                    Host = "localhost:5000",
                    Connection = "",
                    CreatedTime = DateTimeOffset.Now,
                }
            };
    }
}